
import { createApp } from 'vue'
import App from './App.vue'
// 引入elementplus
import ElementPlus from 'element-plus'
// elementplus的css
import 'element-plus/dist/index.css'
// 国际化
import zhCn from 'element-plus/es/locale/lang/zh-cn'
// 引入大仓库
import pinia from './store'
// 引入router
import{router}from "./router/index"
// 全部引入element的字体图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import  "@/router/permiss"
const app = createApp(App)
app.use(pinia)
app.use(router)
app.use(ElementPlus, {
    locale: zhCn,
  })
  for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }
app.mount('#app')
